package com.joven.shelltest.utils.jsonview;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author: wzj
 * @Date: 2024/5/31 10:05
 */
@Data
public class JsonViewDto implements Serializable {

    private static final long serialVersionUID = 3269800727231521815L;

    @JsonView(UserView.Basic.class)
    private String name;
    @JsonView(UserView.Basic.class)
    private String age;
    @JsonView(UserView.Basic.class)
    @JsonIgnore
    private String sex;
    @JsonView(UserView.Basic.class)
    private String phone;
    @JsonView(UserView.Full.class)
    private String address;
    @JsonView(UserView.Full.class)
    private String idCard;
    @JsonView({UserView.WithoutPassword.class, UserView.Full.class})
    private String account;
    @JsonView({UserView.WithoutPassword.class, UserView.Full.class})
    private String password;

}
